<template>
  <div>
    <tr>
        <th><input type="checkbox" v-model="isAll"></th>
        <th><span>已购商品({{ total }})</span></th>
        <th>清空购物车</th>
      </tr>
  </div>
</template>

<script>
export default {
    data(){
        return{
        }
    },
    computed:{
    isAll:{
      get(){
      return this.objList.every(obj => obj.isChecked)
     },
     set(val){
      this.objList.forEach(obj => obj.isChecked = val)
     }
   }
 }
}
</script>

<style>

</style>